New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This removes many const char* warnings related with LWIP_ASSERT() #10500
Conversation
@andrewc-arm, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine, but I'm curious where you're seeing the warnings. Which toolchain? Have you enabled extra warnings?
The lack of const
here would be a problem in C++, where string literals are const char[]
, but in C they're char[]
, so passing a string literal to this is valid, and I don't recall seeing any warnings myself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing description and PR type in the first comment (PR template) - please fill in the details
As requested, how was this tested - which toolchain produce warnings?
@andrewc-arm please correctly fill in the PR template header. Needs a proper description and pull request type setting |
Sorry for the late response. I have been working on Samsung issues lately. I will get back soon. |
My question about where/why you were seeing warnings remains outstanding. |
Hi, @kjbracey-arm My template comment far above has been updated.
I thought the log and error messages are good enough. If not, please let me know. |
@kjbracey-arm are you happy with this ? |
Sorry, missed part of your update. So the issue is your own Okay, that would explain why I've not seen it - that Yes, fix is fine - makes it safe for C++ use. |
I'll schedule CI a bit later today due to 5.12.3 final patches in CI |
Hi, @kjbracey-arm
I am not so sure where the ping.c came from. I got the original ping.cpp file from Samsung's application code which seems to be Apache 2 style license. I improved it for IPv6 in mbed-os-example-ping. Thanks for approval! |
CI started |
Test run: FAILEDSummary: 2 of 11 test jobs failed Failed test jobs:
|
Hi, @adbridge This is excerpt of the failure.
I think this failure is not caused by my simple code change in LwIP. Or am I missing something? |
@andrewc-arm Looks like there were some changes to the CI which broke the test. We will re-run the tests once they have fixed it. |
CI restarted |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
If we enable LWIP debugging option like
"lwip.debug-enabled": true,
, we get many warnings related with LWIP_ASSERT like following.For more information, please refer to the attached build_log.txt file.
build_log.txt
The code change removes duplicate warnings.
This problem was reproduced in GCC_ARM and fixed in GCC_ARM. Other toolchains are not tested.
Pull request type
Reviewers
Release Notes